home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d22 / ct25.arc / CT25.DOC next >
Text File  |  1991-05-22  |  8KB  |  184 lines

  1.                                  Cache Test v 2.5
  2.                                        by
  3.                                   George Spafford
  4.  
  5.                                      Summary
  6.  
  7.           This program is designed to help a user evaluate the impacts
  8.           of a cache, or the changes to an existing cache, on a drive's
  9.           performance.  
  10.  
  11.       Furthermore, with users' increasingly using caches during a 
  12.       variety of tasks, it is important to find the optimal cache 
  13.       settings given the task at hand.  Whereas a word processor 
  14.       might make heavy usage of sequential files, a database 
  15.       might make heavy usage of random access files.  With this 
  16.       in mind, the memory requirements, sectors cached, write 
  17.       delays and so forth have many possible variations.
  18.  
  19.           By default, Cache Test creates a 10,000 record 
  20.       sequential file and then a 10,000 record random access 
  21.       file. These temporary files are approximately 1.3 megabytes
  22.       in size. 
  23.  
  24.       This program uses BIOS to do all of its reads and writes, 
  25.       so any hardware or software cache should be able to get 
  26.       some good "hits."  In attempt to flush caches during the 
  27.       test, files are frequently opened and closed.
  28.  
  29.           All of the times that this program writes are the result of
  30.           subtracting the beginning time from the ending time.  Nothing
  31.           fancy, so the values are relatively accurate.
  32.  
  33.           A few definitions:
  34.  
  35.           "ButterFly Test"     The middle record is read and then a
  36.                                record is alternatingly and read in each
  37.                                direction from the middle.  Say you have
  38.                                a 100 record file, the read order would
  39.                                be 50,49,51,48,52,47,53 . . . and so
  40.                                forth.
  41.  
  42.  
  43.           "Crescendo Read"     Records are read alternatingly in from the end of
  44.                                the file and the beginning file.  This is to say,
  45.                                record 1, 10000, 2, 9999, 3, 9998, 4, 9997 etc.
  46.  
  47.           "Random Read/Write"  Random functions generate independent random
  48.                                reads and writes.
  49.  
  50.           "Stepping-by-1"      A random access file's records are being accessed
  51.                                one at a time.
  52.  
  53.           "Stepping-by-10"     A random access file's records are being accessed
  54.                                on every 10th record.
  55.  
  56.           "Write-by-10"        A random access file's records are being updated
  57.                                on every 10th record.
  58.  
  59.           "Overall"            This is the total time of all tests AND file
  60.                                deletes.  So, it might not reflect the sum
  61.                                of all tests exactly, but it should be very
  62.                                close.
  63.  
  64.           I just wanted to make those meanings a little clearer.
  65.  
  66.           ******************************************************************
  67.  
  68.           Usage of this program is:
  69.  
  70.           CT  </D:d></N:n></S></R></B></1)</2> . . . </9>
  71.  
  72.               CT by itself will clear the screen and then ask you for the
  73.               desired drive and then proceed using a 10,000 record 
  74.           default.
  75.  
  76.       Explanation of switches:
  77.  
  78.           /D:d    This specifies "d" as the drive to be tested.
  79.  
  80.       /N:n    This specifies the number of test records.
  81.         Note, the only limitation here is the available space 
  82.         on your test drive.  10,000 records takes 1.3M, 20,000
  83.         takes 2.6M and so forth.  You can also go as small as 
  84.         you want, but you will reach a point where your test
  85.         will lose its validity.
  86.                 The default value, if this switch is not used, is
  87.                 10,000 records.
  88.  
  89.       /B    Test both sequential and random access records.
  90.       /R    Test random access records only.
  91.       /S    Test sequential access records only.
  92.  
  93.           Suggestions:
  94.  
  95.           You might want to set up a batch file that purges your cache
  96.           before CT is run.  This will allow the cache to have a little
  97.           fairer test, as opposed to starting out partially full.
  98.           Also, if you are interested in the actual hits on your cache, most
  99.           cache programs (PC-CACHE and NCACHE for sure) have status switches
  100.           that allow you to see the results from the cache's point of view.
  101.  
  102.           The test file is written in the root directory of the target drive.
  103.           The file name is TEST$$CT.SPD.  If the critter appears, don't panic!
  104.           It probably didn't get deleted because of an interrupted test.
  105.  
  106.       HISTORY:
  107.  
  108.           V2.5  5/22/91
  109.  
  110.                 1.  An actual test file byte size field has been added.
  111.                     This should allow users to track the actual sizes of
  112.                     the test records being written.
  113.                 2.  Some users suggested that truly random reads and writes
  114.                     should be added.  This serves to get away from any form
  115.                     of sequentialized data.
  116.                 3.  Again, more cosmetic touchups.
  117.  
  118.       V2.0    5/16/91
  119.  
  120.         Due to some users have limited drive space, switches
  121.         were added to allow for different size tests to 
  122.         occur.  I was somewhat hesitant to do this because it
  123.         negated the ability to call results "standard," but 
  124.         what really is standard?
  125.  
  126.         Switches were also added to allow users to select 
  127.         what tests they want to run.  For now, all that can 
  128.         be specified is whether or not to run all tests, 
  129.         sequential tests only, or random tests only.
  130.  
  131.         The ButterFly test was also added in an attemp to 
  132.         give look-ahead caches a hard time.  Some of the 
  133.         caches that use a FIFO method of purging will have a 
  134.         heck of a time with this one.
  135.  
  136.         Added timers/cleared up timers for the sequential and 
  137.         overall tests.  Also speaking of timers, to avoid 
  138.         slowing down some routines, I have removed some of 
  139.         the video effects that were for the user's benefit 
  140.         only.
  141.  
  142.         Special thanks to Jonathan Fisk for all of his 
  143.         suggestions and debugging efforts.
  144.  
  145.         Special thanks also go out to Tim Akright, the sysop 
  146.         of Queued Access for all of his support.
  147.  
  148.  
  149.       V1.0  5/10/91
  150.  
  151.         Well, I released it. That pretty well sums it up.
  152.  
  153.  
  154.  
  155.         I hope this program helps you evaluate some of your problems
  156.         or even makes some solutions/benefits clear.  I wrote this
  157.         during some of my spare time and if you would like to make a
  158.         contribution to offset some of my modem's phone bills, I'd
  159.         appreciate it ($5).  If you have any suggestions, I'd REALLY like
  160.         to hear those too.
  161.  
  162.             Sincerely,
  163.  
  164.             George Spafford
  165.             3001 LakeShore Drive, #329
  166.             St. Joseph, MI 49085
  167.  
  168.             Data:  (616) 468-5026  Queued Access BBS 2400-8-N-1
  169.                                 FIDOnet: 1:227/250
  170.  
  171.         And now for the unpleasantries:
  172.  
  173.  
  174.         CT IS DISTRIBUTED AS IS.  THE AUTHOR (GEORGE SPAFFORD) MAKES NO
  175.         WARRANTY OF ANY KIND, EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
  176.         TO WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE,
  177.         WITH RESPECT TO THIS SOFTWARE AND DOCUMENTATION. IN NO EVENT SHALL
  178.         THE AUTHOR BE LIABLE FOR ANY DAMAGES, INCLUDING LOST PROFITS, LOST
  179.         SAVINGS, OR ANY OTHER INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
  180.         OUT OF THE USE OF OR THE INABILITY TO USE THIS PROGRAM.
  181.         ----------------------------------------------------------------
  182.  
  183.           Is it just me, or do all of the disclaimers look the same??
  184.